<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <h1>姥姥，姥姥，几点钟？</h1>
    <button type="button" onclick="showDate()">就不告诉你</button>
    <p id="output"></p>
    <script>
        function showDate() {
            document.getElementById("output").innerHTML = new Date();
        }
    </script>
</body>

</html>